﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Gao.Poker.Domain
{
    public class CompetitionLevel : IComparable
    {
        [Key]
        public int ID { get; set; }
        public int CompetitionID { get; set; }
        public int Level { get; set; }
        /// <summary>
        /// 盲注
        /// </summary>
        [StringLength(30)]
        public String Blind { get; set; }
        /// <summary>
        /// 比赛时间
        /// </summary>
        public int CompetitionTime { get; set; }
        /// <summary>
        /// 前置休息时间
        /// </summary>
        public int AfterRestTime { get; set; }
        /// <summary>
        /// 附加前注
        /// </summary>
        public int AppendGamble { get; set; }

        public virtual Competition Competition { get; set; }

        public int CompareTo(object obj)
        {
            var o = obj as CompetitionLevel;
            if (o == null) return -1;
            return Level.CompareTo(o.Level);
        }
    }
}
